package com.movisol.messengerprofileservice.data;

public class Friend {

	private UserProfile UserProfile;
	private Integer FriendStatusId;
	
	
	public Friend()
	{
		
	}
	
	public Friend(UserProfile userProfile, Integer friendStatusId) {
		super();
		this.UserProfile = userProfile;
		this.FriendStatusId = friendStatusId;
	}

	public UserProfile getUserProfile() {
		return UserProfile;
	}

	public void setUserProfile(UserProfile userProfile) {
		this.UserProfile = userProfile;
	}

	public Integer getFriendStatusId() {
		return FriendStatusId;
	}

	public void setFriendStatusId(Integer friendStatusId) {
		this.FriendStatusId = friendStatusId;
	}

	@Override
	public String toString() {
		return "Friend [userProfile=" + UserProfile + ", friendStatusId="
				+ FriendStatusId + "]";
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((FriendStatusId == null) ? 0 : FriendStatusId.hashCode());
		result = prime * result + ((UserProfile == null) ? 0 : UserProfile.hashCode());
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		Friend other = (Friend) obj;
		if (FriendStatusId == null)
		{
			if (other.FriendStatusId != null)
				return false;
		} else if (!FriendStatusId.equals(other.FriendStatusId))
			return false;
		if (UserProfile == null)
		{
			if (other.UserProfile != null)
				return false;
		} else if (!UserProfile.equals(other.UserProfile))
			return false;
		return true;
	}
	
	
	
	
	
	
}
